#include "BieuThucDon.h"


BieuThucDon::BieuThucDon(void)
{
}

BieuThucDon::BieuThucDon(int heso,int somu):BieuThuc()
{
	this->m_iHeSo = heso;
	this->m_iSoMu = somu;
}

BieuThuc* BieuThucDon::daoHam()
{
	int hesomoi = this->m_iHeSo * this->m_iSoMu;
	int somumoi = this->m_iSoMu - 1;
	BieuThucDon ketqua(hesomoi,somumoi);
	return &ketqua;
}

BieuThucDon::~BieuThucDon(void)
{
}
